package com.liaowei.article.model.param;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class ArticleStatusParam {
    @NotNull(message = "文章id不能为空")
    @Min(value = 1,message = "请输入有效id")
    private Long id;
    @Range(min = -1,max = 1,message = "请输入正确的状态")
    private int status;
}
